package com.demo.user.controller;


import com.demo.user.model.Info;
import com.demo.user.service.IInfoService;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;

import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * <p>
 * 学生信息表 前端控制器
 * </p>
 *
 * @author yu.tan
 * @since 2021-08-10
 */
@RestController
@RequestMapping("/user/info")
public class InfoController {

    @Autowired
    private IInfoService iInfoService;

    @ApiOperation("测试所有查询")
    @RequestMapping(value = "/query_all",method = RequestMethod.GET)
    public List<Info> testA(){
        return iInfoService.list();
    }

    @ApiOperation("登录测试")
    @RequestMapping(value = "/login",method = RequestMethod.GET)
    public List<Info> login(){
        return iInfoService.list();
    }
}
